package com.pmx.mall.product.dao;

import com.pmx.mall.product.entity.CategoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 商品三级分类
 * 
 * @author pmx
 * @email 746618739@qq.com
 * @date 2022-10-02 21:44:11
 */
@Mapper
public interface CategoryDao extends BaseMapper<CategoryEntity> {

    @Select("SELECT * FROM pms_category WHERE parent_cid = 0")
    List<CategoryEntity> queryLeve1Category();
}
